// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import Mint from 'mint-ui'

import 'mint-ui/lib/style.css'
import '../static/css/app.css'
import App from './App'
import router from './router'
import '../static/js/rem.js'
import footShow from './components/footShow.js'
import workbench from './components/workbench/index'
import check from './check/index.js'
import formatter from './formatter/index.js'
import api from './api/index.js'
import getCase from './getCase/index.js'
import focus from './directive/directive.js'
Vue.prototype.$api = api;
Vue.prototype.$check = check
Vue.prototype.$formatter = formatter
Vue.prototype.$getCase = getCase
Vue.use(Mint)
Vue.use(footShow)
Vue.config.productionTip = false
Vue.use(workbench)
router.afterEach((to, from, next) => {
    window.scrollTo(0, 0);
});

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    template: '<App/>',
    components: { App },
    watch: {

    },

})